#include <bits/stdc++.h>

#define ll long long
#define YES cout << "Yes" << endl
#define NO cout << "No" << endl
const int INF = 1e9;
using namespace std;
/*思考区
 dp[i]为守望者再第 i 秒最多可以逃离的米数
 先只考虑闪现能到的最远距离
 最后再考虑步行是否更新dp[i]
*/
void solve()
{
    int M, S, T, dp[300001] = {0};
    cin >> M >> S >> T;
    for (int i = 1; i <= T; i++)
    {
        if (M >= 10)
        {
            dp[i] = dp[i - 1] + 60;
            M -= 10;
        }
        else
        {
            dp[i] = dp[i - 1];
            M += 4;
        }
    }

    for (int i = 1; i <= T; i++)
    {
        dp[i] = max(dp[i], dp[i - 1] + 17);
        if (dp[i] >= S)
        {
            YES;
            cout << i;
            return;
        }
    }
    NO;
    cout << dp[T];
}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    solve();
    return 0;
}